<template>
  <div>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="like-o" to="/home/takeout"> 外卖 </van-tabbar-item>
      <van-tabbar-item icon="search" to="/home/search">搜索</van-tabbar-item>
      <van-tabbar-item icon="balance-list-o" to="/home/order"
        >订单</van-tabbar-item
      >
      <van-tabbar-item icon="contact" to="/home/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: localStorage.getItem("active")
        ? localStorage.getItem("active") * 1
        : 0,
    };
  },
};
</script>

<style lang="scss" scoped>
</style>